﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmTarjetaPlacasActualizar.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmTarjetaPlacasActualizar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
   <div class="main-header" style="width:100%">
                <div class="main-titulo" style="width:90%;">
                Actualizar tarjeta placas
                    </div>
               
               
            </div>



 <script type="text/javascript">


     function pageLoad() {

         var control = document.getElementById('ctl00_cphMain_hfIndicador');
         cambiarImagenHeader();

         if (control.value == 'S') {
             $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

             control.value = 'N';
         }


     }
     

</script>

            <table cellspacing="5">
            <tr>
            <td width="145">
            
                <dx:ASPxButton ID="btnNuevo" runat="server" Text="Nuevo trámite" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="btnNuevo_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="140px">
                    <Image Url="~/Images/bt_new_button.gif">
                    </Image>
                </dx:ASPxButton>
            
            </td>
            <td width="145">
            
                <dx:ASPxButton ID="btnEditar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Editar trámite" onclick="btnEditar_Click" Width="140px">
                    <Image Url="~/Images/edit2.gif">
                    </Image>
                </dx:ASPxButton>
            
            </td>
            <td width="237">
            
                <dx:ASPxButton ID="btnRecepcion" runat="server" 
                    Text="Recepción de tarjeta y placa" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    onclick="btnRecepcion_Click" Width="232px">
                    <Image Url="~/Images/landscape.gif">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td width="105">
            
                <dx:ASPxButton ID="btnExportarExcel" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="btnExportarExcel_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Exportar" 
                    Width="100px">
                    <Image Url="~/Images/excel16.gif">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td width="105">
             <dx:ASPxButton ID="btnSalir" runat="server" 
                    Text="Salir" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    onclick="btnSalir_Click" Width="100px" 
                    >
                 <Image Url="~/Images/logout.png">
                 </Image>
                </dx:ASPxButton>
            </td>
            </tr>
            
            </table>
             <div>
             
              <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
             
                 
             
             <asp:UpdatePanel runat="server">
             <ContentTemplate>
             
             
          
                 <dx:ASPxRoundPanel ID="RPListaTarjetaplacas" runat="server" Width="100%" 
                     HeaderText="" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                     GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                     SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">

                     <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="10px" />
                     <HeaderStyle>
                     <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                         PaddingTop="3px" />
                     </HeaderStyle>

                     <PanelCollection>
                         <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                     
                     <table>
                     <tr>
                     <td>
                     Año:
                     
                     </td>
                     <td>
                         <dx:ASPxComboBox ID="cboAnio" runat="server" 
                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                             CssPostfix="Office2010Blue" Spacing="0" 
                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                             Height="30px">
                             <Items>
                                 <dx:ListEditItem Text="2010" Value="2010" />
                                 <dx:ListEditItem Text="2011" Value="2011" />
                                 <dx:ListEditItem Text="2012" Value="2012" />
                                 <dx:ListEditItem Text="2013" Value="2013" />
                                 <dx:ListEditItem Text="2014" Value="2014" />
                             </Items>
                             <ItemStyle Height="30px" />
                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                             </LoadingPanelImage>
                             <LoadingPanelStyle ImageSpacing="5px">
                             </LoadingPanelStyle>
                             <DropDownButton Width="20px">
                             </DropDownButton>
                             <ButtonStyle Width="13px">
                             </ButtonStyle>
                             <Paddings PaddingLeft="5px" />
                         </dx:ASPxComboBox>
                     
                     
                     </td>
                     <td>
                     
                     Mes:
                     </td>
                     <td>
                         <dx:ASPxComboBox ID="cboMes" runat="server" 
                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                             CssPostfix="Office2010Blue" SelectedIndex="6" Spacing="0" 
                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                             Height="30px">
                             <Items>
                                 <dx:ListEditItem Text="Enero" Value="1" />
                                 <dx:ListEditItem Text="Febrero" Value="2" />
                                 <dx:ListEditItem Text="Marzo" Value="3" />
                                 <dx:ListEditItem Text="Abril" Value="4" />
                                 <dx:ListEditItem Text="Mayo" Value="5" />
                                 <dx:ListEditItem Text="Junio" Value="6" />
                                 <dx:ListEditItem Selected="True" Text="Julio" Value="7" />
                                 <dx:ListEditItem Text="Agosto" Value="8" />
                                 <dx:ListEditItem Text="Septiembre" Value="9" />
                                 <dx:ListEditItem Text="Octubre" Value="10" />
                                 <dx:ListEditItem Text="Noviembre" Value="11" />
                                 <dx:ListEditItem Text="Diciembre" Value="12" />
                             </Items>
                             <ItemStyle Height="30px" />
                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                             </LoadingPanelImage>
                             <LoadingPanelStyle ImageSpacing="5px">
                             </LoadingPanelStyle>
                             <DropDownButton Width="20px">
                             </DropDownButton>
                             <ButtonStyle Width="13px">
                             </ButtonStyle>
                             <Paddings PaddingLeft="5px" />
                         </dx:ASPxComboBox>
                     
                     </td>
                     <td>
                     
                     Oficina:
                     
                     </td>
                     <td>
                         <dx:ASPxComboBox ID="cboOficina" runat="server" 
                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                             CssPostfix="Office2010Blue" Spacing="0" 
                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                             Height="30px">
                             <ItemStyle Height="30px" />
                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                             </LoadingPanelImage>
                             <LoadingPanelStyle ImageSpacing="5px">
                             </LoadingPanelStyle>
                             <DropDownButton Width="20px">
                             </DropDownButton>
                             <ButtonStyle Width="13px">
                             </ButtonStyle>
                             <Paddings PaddingLeft="5px" />
                         </dx:ASPxComboBox>
                     
                     
                     </td>
                         <td>
                             Tipo:</td>
                         <td>
                             <dx:ASPxComboBox ID="cboTipo" runat="server" 
                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                 CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                 <ItemStyle Height="30px" />
                                 <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                 </LoadingPanelImage>
                                 <LoadingPanelStyle ImageSpacing="5px">
                                 </LoadingPanelStyle>
                                 <DropDownButton Width="20px">
                                 </DropDownButton>
                                 <ButtonStyle Width="13px">
                                 </ButtonStyle>
                                 <Paddings PaddingLeft="5px" />
                             </dx:ASPxComboBox>
                         </td>
                     <td align="right" style="width: 116px">
                     
                     
                         <dx:ASPxButton ID="btnFiltro" runat="server" Text="Consultar" 
                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                             CssPostfix="Office2010Blue" 
                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                             Width="100px" OnClick="btnFiltro_Click">
                             <Image Url="~/Images/search.png">
                             </Image>
                         </dx:ASPxButton>
                     
                     </td>
                     </tr>
                         <tr>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                             <td style="width: 116px">
                                 &nbsp;</td>
                         </tr>
                     </table>




                    





                    <dx:ASPxGridView ID="grdListaTarjetaPlacas" runat="server" 
                     AutoGenerateColumns="False" 
                     CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                     CssPostfix="Office2010Blue" Width="100%" KeyFieldName="NRO_LOTE" 
                     onafterperformcallback="grdListaTarjetaPlacas_AfterPerformCallback" 
                     onpageindexchanged="grdListaTarjetaPlacas_PageIndexChanged">
                      <Settings ShowFilterBar="Visible" ShowFilterRow="True" 
                                ShowGroupedColumns="True" ShowGroupPanel="True" 
                                VerticalScrollableHeight="300" VerticalScrollBarStyle="Virtual" ShowFilterRowMenu="True" 
                                 />    
                     <Columns>
                         <dx:GridViewDataTextColumn Caption="Fecha Factura" FieldName="FEC_FACTURA" 
                             VisibleIndex="1" Width="100px" FixedStyle="Left">
                             <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                             </PropertiesTextEdit>
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Cliente" FieldName="DES_CLIENTE" 
                             VisibleIndex="2" Width="300px" ShowInCustomizationForm="True">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Material" FieldName="DES_MODELO" 
                             VisibleIndex="3" Width="270px">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Lote" FieldName="NRO_LOTE" 
                             VisibleIndex="18">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Entidad Financiera" VisibleIndex="4" 
                             Visible="False">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Nro. Motor" FieldName="NRO_MOTOR" 
                             VisibleIndex="6" ToolTip="Nro.motor vehículo" Width="100px" 
                             ShowInCustomizationForm="True">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Nro. VIN" FieldName="NRO_VIN" 
                             VisibleIndex="7" Width="150px">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Ref. Embarque" FieldName="REF_EMBARQUE" 
                             VisibleIndex="8" Width="100px" ShowInCustomizationForm="True">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Caja" FieldName="NRO_CAJA" VisibleIndex="9" 
                             Width="60px">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Fec. Inicio Trámite" 
                             FieldName="FEC_INICIO_TRAMITE" VisibleIndex="11" 
                             ToolTip="Fec.entrega exp.al tramitador" Width="130px">
                                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                </PropertiesTextEdit>
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Tramitador" FieldName="DES_CORTA" 
                             VisibleIndex="10" Width="200px">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Fec. Recepción Tarjeta" 
                             FieldName="FEC_RECEPCION_TARJETA" VisibleIndex="12" Width="140px">
                                 <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                </PropertiesTextEdit>
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Nro. Placa" FieldName="NRO_PLACA" 
                             VisibleIndex="14">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Fec. Recepción Placa" 
                             FieldName="FEC_RECEPCION_PLACA" VisibleIndex="13" Width="130px">

                                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                </PropertiesTextEdit>

                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Nro. Título" VisibleIndex="15" 
                             FieldName="TITULO">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Observación" FieldName="OBSERVACIONES" 
                             VisibleIndex="16" Width="300px">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn FieldName="NRO_FOLIO" 
                             VisibleIndex="5" Caption="Documento" Width="150px">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Nro. Factura" FieldName="NRO_FACTURA" 
                             VisibleIndex="0">
                          
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="Oficina" FieldName="DES_OFI_VTA" 
                             VisibleIndex="17">
                         </dx:GridViewDataTextColumn>
                         <dx:GridViewDataTextColumn Caption="ID_TARJETA_PLACA_CAB" FieldName="ID_TARJETA_PLACA_CAB" 
                             VisibleIndex="19" Visible="False">
                         </dx:GridViewDataTextColumn>
                     </Columns>
                      <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" />
                     <SettingsPager PageSize="20">
                     </SettingsPager>
                     <Settings ShowHorizontalScrollBar="True" />
                     <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                         <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                         </LoadingPanelOnStatusBar>
                         <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                         </LoadingPanel>
                     </Images>
                     <ImagesFilterControl>
                         <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                         </LoadingPanel>
                     </ImagesFilterControl>
                     <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                         CssPostfix="Office2010Blue">
                         <Header ImageSpacing="5px" SortingImageSpacing="5px">
                         </Header>
                         <LoadingPanel ImageSpacing="5px">
                         </LoadingPanel>
                     </Styles>
                     <StylesPager>
                         <PageNumber ForeColor="#3E4846">
                         </PageNumber>
                         <Summary ForeColor="#1E395B">
                         </Summary>
                     </StylesPager>
                     <StylesEditors ButtonEditCellSpacing="0">
                         <ProgressBar Height="21px">
                         </ProgressBar>
                     </StylesEditors>
                 </dx:ASPxGridView>

                 <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" 
                     GridViewID="grdListaTarjetaPlacas">
                 </dx:ASPxGridViewExporter>









                         </dx:PanelContent>
                     </PanelCollection>

                 </dx:ASPxRoundPanel>
             
             
                </ContentTemplate>
             
             </asp:UpdatePanel>
             
             </div>
</asp:Content>
